#include "Point.h"


Point::Point(float x ,float y ,float z ,COLOR color)
{
	this->x = x;
	this->y = y;
	this->z = z;
	this->color = color;
}


Point::~Point(void)
{
}

void Point::draw( IPixelDrawer* dr )
{

}


void Point::mulMat( Mat4& mat )
{
	Vec4 v(x,y,z,1);
	Vec4 r = v * &mat;
	x = r.x;y = r.y;z = r.z;
}

void Point::operator=( Point& pt )
{
	x = pt.x;
	y = pt.y;
	z = pt.z;
	color = pt.color;
}
Point Point::operator+( Point& pt )
{
	return Point(x + pt.x,y + pt.y,z + pt.z);
}

Point Point::operator-(Point& pt)
{
	return Point(x - pt.x,y - pt.y,z - pt.z);
}
